<?
    $a_startrow = $startrow;
    $a_maxrows = $maxrows; 
    
    
    require('wed_php_odbc.inc');
?>
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Accueil vide greniers </title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<div id="layer2" style="width:716px; height:237px; position:absolute; left:229px; top:3px; z-index:1;">
    <p align="center"><b><font size="6">Vide Greniers du 5&nbsp;mai&nbsp;2013 Saint Lys</font></b></p>
    <p align="center"><img src="logoasparel tm.jpg" width="112" height="109" border="0"></p>
</div>
<div id="layer1" style="background-color:white; border-width:1; border-style:dashed; width:230px; height:211px; position:absolute; left:4px; top:3px; z-index:1;">
    <p align="center"><b><font size="4" face="Arial">Déjà inscrit ?</font></b><font face="Arial"></font></p>
    <p align="center"><b><font size="3" face="Arial">Consultation de votre fiche</font></b></p>

         <form name="Consultidentifiant" action="inscriptionvg.php?" method="get">
        <p align="center"><b><font size="3" face="Arial">Identifiant d'inscription :</font><font size="3"> </font></b></p>
        <p align="center"><input type="text" name="chaine" maxlength="10"></p>
        <p align="center"><input type="submit" name="Valider" value="Valider"></p>

            </form>
</div>
<table border="1" width="916" align="center" bgcolor="#B5D673">
    <tr>

<p align="center"><b><font size="4">
        <td width="378">
            <p align="center">			        
                         <form name="form1" action="saisie.php" method="get">
                <p align="center"><font size="4" face="Arial">Cliquez sur le bouton ci-dessous pour une nouvelle inscription</font></p>
                <p align="center"><input type="submit" name="Valider" value="Nouvelle inscription" style="font-family:Arial; font-weight:bold; font-size:20px; color:red; text-decoration:blink;">&nbsp;</p>
            </form>


        </td>    </tr>
</table>


<?  
    $w_disprows = 300;
    
    $w_sqlstr = "SELECT emplacements.num, emplacements.identifiant FROM emplacements WHERE (emplacements.identifiant = '0')";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);
  ?>
<?  
    $w_disprows = 300;
    
    $w_sqlstr = "SELECT emplacements.num, emplacements.identifiant FROM emplacements WHERE (emplacements.identifiant <> '0')";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows1);
    $pourcent = ($w_rows1/251)*100;
	$pourcent = (int) $pourcent;
  ?>

<p align="center"><b><font size="5" face="Arial">Liste des emplacements encores libres :</font></b></p>
<p align="center"><?
    $w_disprows = 252;
    
    $w_sqlstr = "SELECT emplacements.num FROM emplacements WHERE (((emplacements.identifiant )= '0') AND ((emplacements.voitures)<>0)) ORDER BY emplacements.num";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);

    for ($w_i = 0; $w_i < $w_rows; $w_i++) {
    	$f_emplacements_num = $w_record[$w_i][0];
    	
                                              
                                              wed_write($f_emplacements_num);
		echo " - ";									
    }
?>
</p>
<p align="center"><b><font size="5" face="Arial" color="red">Ensuite, inscriptions possibles en liste complémentaire</font></b></p>
<p align="center"><b><font size="5" face="Arial" color="red">En&nbsp;attente&nbsp;de désistement ou de non-confirmations de réservation</font></b></p>
<p align="center"><font size="3" face="Arial"><b>Vous pourrez&nbsp;valider la réservation de votre ou de vos emplacement(s), dès la fiche &quot;nouvelle inscription&quot; remplie</b></font></p>
<p align="center"><img src="emplacements tm.jpg" width="1000" height="942" border="0"></p>
</body>

</html>
